﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using TRPOP.Common;
using TRPOP.CRM.Component.Business;
using TRPOP.CRM.Component.Common;
using TRPOP.CRM.Component.DALSQLServer;
using TRPOP.CRM.Component.Model;
namespace TRPOP.CRM.Web
{
    /// <summary>
    /// 员工销售排行榜
    /// </summary>
    public partial class SaleTopToday :BaseAdmin
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        #region 页面方法


        /// <summary>
        /// 分页触发此事件（分页采用post方法传递数据）
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void UC_PagerChanged(object sender, EventArgs e)
        {
            BindData();
        }

        protected void BindData()
        {
            int RecordCount = 0;
            string strCondition = string.Empty;
            rptList.DataSource = EmployeeManage.GetEmployeeTitleInfoPager(Pager.CurrentPage, Pager.PageSize,strCondition,  string.Empty, out RecordCount);

            rptList.DataBind();

            Pager.RecordCount = RecordCount;
            
        }
        #endregion
    }
}